{* Smarty *}

	<img src="img/welcome.png" style="padding:6;">
	<br>
	<div class="text_big"  style="position:relative; padding:0 0 0 6; margin:0 0 -3 0;">Your Account</div>
	<img src="img/line_big.gif" style="padding:0 0 0 6;" >

    <table align="center" id="content_text">
        <tr>                           
                <td colspan="2" align="center">
              <span style="background-color: #4094D7; color: #ffffff; padding: 6px; font-family: verdana; font-size: 12px; text-align: left; font-weight:lighter;">My orders :: <b>{$acount.client_name}</b></span>
            </td>
        </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="90%">
    <tr valign="top">
	<td style="padding:0 0 0 5;">
                {include file="../include/facePlugins/ccplugin/tpl/acc_left_menu.tpl.php"}
	</td>
    
    <td width="100%" align="center" id="content_text">


            <div class="title">Order {if "ret" == $order.type_order}Return {/if}Details</div>
            <br />
            
            <table width="90%" class="list">
            <tr><th colspan="6">Order ID #{$order.id}. Received at {"`$order.pubdate`"|date_format:"%m/%d/%Y %I:%M %p"}</th></tr>
            <tr class="footer">
                <td>Billing Details</td>
                <td colspan="5">Shipping Details</td>
            </tr>   
            <tr class="light" valign="top">
                <td align="left" valign="top">
                    {$order.lname} {$order.fname}<br />
                    {$order.address1}<br />
                    {$order.address2}<br />
                    {$order.city} {$order.zip} {$order.state} {$order.country}<br />
                    {$order.phone}<br />
                    {$order.email}<br /><br />
                    {* <i>How did you find us:</i> Yahoo<br /> *}
                </td>
                <td align="left" valign="top" colspan="5">
                    {$order.slname} {$order.sfname}<br />
                    {$order.saddress1}<br />
                    {$order.saddress2}<br />
                    {$order.scity} {$order.szip} {$order.sstate} {$order.scountry}<br />
                </td>
            </tr>
            <tr class="footer">
                <td colspan="6">Payment Information</td>
            </tr>   
            <tr class="light">
                <td align="left" valign="top" colspan="6">
                Credit Card Payment
                </td>
            </tr>
            
            <tr class="light" align="left">
            <td colspan="6">
                    <table border="1" cellpadding="0" cellspacing="0" class="list">
            
                    <tr class="light">
                    <td>Credit card type:
                    </td>
                    <td>
                        {$order.cctype}
                    </td>
                    </tr>
            
                    <tr class="light">
                    <td>Credit card number:
                    </td>
                    <td>
                        {$order.ccnumber|indent:$order.ccnumber_num_simb:"*"}
                    </td>
                    </tr>
            
                    <tr class="light">
                    <td>Credit card holder:
                    </td>
                    <td>
                        {$order.ccholdername}
                    </td>
                    </tr>
            
                    <tr class="light">
                    <td>Credit card CVV:
                    </td>
                    <td>
                        {$order.cccvv}
                    </td>
                    </tr>
            
                    <tr class="light">
                    <td>Expiration date:
                    </td>
                    <td>
                        {$order.ccexpdate}
                    </td>
                    </tr>
            
                    </table>
            </td>
            </tr>
            
            <tr class="footer">
                <td colspan="6">Shopping Cart Details</td>
            </tr>
            
            <tr class="dark">
                <td{if "ret" != $order.type_order} colspan="2"{/if}>Item</td>
                {if "ret" == $order.type_order}
                <td align="center" width="100px">Reason</td>
                {/if}
                <td align="center">Price</td>
                <td align="center">Quantity</td>
                <td align="center">Extended Warranty</td>
                <td align="center">Subtotal</td>
            </tr>
            
            {foreach from=$items item=item}
            <tr class="{cycle values="light,dark"}">
                <td{if "ret" != $order.type_order} colspan="2"{/if}>{if "ret" == $order.type_order}<a href="?path=ccontrl&page=order_details&id={$order.from_order}">{/if}{$item.title}{if "ret" == $order.type_order}</a>{/if}</td>
                {if "ret" == $order.type_order}
                <td>{$item.reason}</td>
                {/if}
                <td align="center">${$item.price_prod}</td>
                <td align="center">{$item.qty}</td>
                <td align="center">{if 0 != $item.warranty_num && "" != $item.warranty_num}${$item.warranty_num}{else}-{/if}</td>
                <td align="center">${$item.price_num_prod+$item.warranty_num}</td>
            </tr>
            {/foreach}
            
            <tr class="dark">
                <td colspan="5">SUB TOTAL:</td>
                <td>${$price}</td>
            </tr>   
            
            <tr class="dark">
                <td colspan="5">Discount</td>
                <td>{if 0 != $order.discount && "" != $order.discount}-${$order.discount}{else}-{/if}</td>
            </tr>
            
            <tr class="dark">
                <td>Shipping</td>
                <td colspan="4">{$shipment.shipment_title}</td>
                <td>{if 0 != $shipment.shipment_price && "" != $shipment.shipment_price}${$shipment.shipment_price}{else}-{/if}</td>
            </tr>
            <tr class="dark">
                <td colspan="5">TOTAL:</td>
                <td>${$order.price}</td>
            </tr>   
            
            <tr class="light">
                <td>Order status: {$current_status}</td>
                <td colspan="5">Order Tracking: {$order.provider}  {$order.order_tn}</td>
            </tr>   
            </table>

    </td>
    </tr>

	<tr align="right" style="padding:0 50 0 0;" id="content_text">
        <td align="center" colspan='2'>
        <input type="button" onclick="javascript: window.history.go(-1);" value="Back" style="height:21px;width:40px;">
	</td>
	<td align="right" id="statlinks">
	<a href="{geturl plugin='ccontrl' method='null' params='page=printorder&id='}{$order.id}" >print</a>
		</td>
	</tr>

    </table>


